package com.sf.dlb.mongo.repository;

import com.sf.dlb.mongo.model.NewList;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;


/**
 * 新闻列表 NewListRepository
 *
 * Created by jing.tan on 2018/5/21.
 */
@Repository
public interface NewListRepository  extends MongoRepository<NewList,String>{
    /**
     * 根据id查询
     * @param id
     * @param delflag
     * @return
     */
    NewList findByIdAndDelFlag(String id, String delflag);
}